package com.xuecheng.search.service;

import com.xuecheng.commons.model.dto.CoursePubIndexDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.CoursePubIndexVo;
import com.xuecheng.commons.model.vo.CoursePubVo;
import com.xuecheng.commons.model.vo.ResponseResult;

import java.io.IOException;

public interface SearchService {
    //数据同步
    void MysqlToES(Long coursePubId);
    //条件分页查询
    ResponseResult<CoursePubVo> search(PageRequest pageRequest, CoursePubIndexDto dto) throws IOException;
    //删除数据
    void deleteES(Long coursePubId);
    //根据id查询课程（免费、收费）
    ResponseResult<CoursePubIndexVo> findById(String id) throws IOException;
}
